home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10336 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  875 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fflush and Visual C++
  5. Date: Sat, 16 Mar 1996 19:33:49 GMT
  6. Organization: Netcom
  7. Message-ID: <314b173b.71056173@nntp.ix.netcom.com>
  8. References: <4idhv5$dnv@news.mhv.net>
  9. NNTP-Posting-Host: ix-dc8-04.ix.netcom.com
  10. X-NETCOM-Date: Sat Mar 16 11:34:07 AM PST 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. Vinny.Bedus@bbs.mhv.net (Vinny Bedus) wrote:
  14.  
  15. > Can someone please tell me why when fflush function is used in Visual C 
  16. > under a dos box it doesn't work?  I have no problems with turbo c for win 
  17. > but anything else and it doesn't flush the stdin buffer.
  18. >  any ans??????????????
  19.  
  20. Perhaps because Visual C implements fflush() correctly.  fflush() does
  21. not flush input buffers.  fflush() with stdin as an argument results
  22. in undefined behavior.
  23.  
  24. Michael M Rubenstein
  25.